x86/HVM: fix memory type merging in epte_get_entry_emt()
authorJan Beulich <jbeulich@suse.com>
Mon, 10 Mar 2014 10:03:53 +0000 (11:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 10 Mar 2014 10:03:53 +0000 (11:03 +0100)
commitb99113b9d5fac5149de8496f55afa00e285b1ff3
tree7994ca79b7366119d4575c8c290d6ed4fc08a3ff
parentcadfd7bca999c0a795dc27be72d43c92e8943a0b
x86/HVM: fix memory type merging in epte_get_entry_emt()

Using the minimum numeric value of guest and host specified memory
types is too simplistic - it works only correctly for a subset of
types. It is in particular the WT/WP combination that needs conversion
to UC if the two types conflict.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: "Xu, Dongxiao" <dongxiao.xu@intel.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/mtrr.c